﻿using System;
using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace YunZuan.Models
{
    [Table(TableName = "yz_goods_sort", PrimaryKey = "ID")]
    public class GoodsSort : BaseEntity
    {
        public GoodsSort()
        { }

        #region Model
        private int _id;
        /// <summary>
        ///ID
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        private int _goodstype;
        /// <summary>
        ///商品类别(1裸钻,2统包,3成品,4彩宝,5翡翠,6素金)
        /// </summary>
        public int GoodsType
        {
            get { return _goodstype; }
            set { this.ChangeNotify<int>("GoodsType", value, ref _goodstype); }
        }
        private string _sortcolumnname;
        /// <summary>
        ///排序列名
        /// </summary>
        public string SortColumnName
        {
            get { return _sortcolumnname; }
            set { this.ChangeNotify<string>("SortColumnName", value, ref _sortcolumnname); }
        }
        private string _sortmode;
        /// <summary>
        ///排序方式
        /// </summary>
        public string SortMode
        {
            get { return _sortmode; }
            set { this.ChangeNotify<string>("SortMode", value, ref _sortmode); }
        }
        private int _createuserid;
        /// <summary>
        ///用户ID
        /// </summary>
        public int CreateUserID
        {
            get { return _createuserid; }
            set { this.ChangeNotify<int>("CreateUserID", value, ref _createuserid); }
        }
        private DateTime _createtime;
        /// <summary>
        ///创建时间
        /// </summary>
        public DateTime CreateTime
        {
            get { return _createtime; }
            set { this.ChangeNotify<DateTime>("CreateTime", value, ref _createtime); }
        }
        private int _modifyuserid;
        /// <summary>
        ///修改用户ID
        /// </summary>
        public int ModifyUserID
        {
            get { return _modifyuserid; }
            set { this.ChangeNotify<int>("ModifyUserID", value, ref _modifyuserid); }
        }
        private DateTime _modifytime;
        /// <summary>
        ///修改时间
        /// </summary>
        public DateTime ModifyTime
        {
            get { return _modifytime; }
            set { this.ChangeNotify<DateTime>("ModifyTime", value, ref _modifytime); }
        }

        #endregion

    }
}
